*** Code for
*** Variance estimation for sensitivity analysis of poverty and inequality measures
*** Christian Dudel, contact: dudel@demogr.mpg.de

The paper comes along with 7 files of code: 5 files for R and 2 files for Stata. The Stata-code
edits the SOEP data such that it is ready for analysis, while the R code is used for simulations
and analyses. The data can be obtained from the DIW: http://www.diw.de/en/soep 
The DOI of the data is: 10.5684/soep.v29

soep_2012.do: Prepares the SOEP data of 2012 for the simulations presented in section 6 of the text.
soep_example.do: Prepares the data of 2000 to 2012 for the empirical example in section 7 of the text.

sim_soep_2012_1.r: 	Simulations for inference on the LIP using the OECD scale (first part of table 1)
sim_soep_2012_2.r: 	Simulations for inference on the mean of the induced distribution SE(E(P)) (table 1)
sim_soep_2012_3.r: 	Simulations for inference on quantiles of the induced distribution (table 1)
sim_soep_2012_4.r: 	Simulations for inference on quantiles of the induced distribution using stratified 
					sampling (supplementary materials)

example_soep_2000-2012.r:	Empirical example of section 7 (results for figs. 3, and 4) 

